import 'package:flutter/cupertino.dart';
import 'package:xiongan_app_yy/entrys/rp/erp_odd_numbers_entity.dart';
import 'package:xiongan_app_yy/entrys/rp/inv_list_details_entity.dart';
import 'package:xiongan_app_yy/entrys/rp/return_booking_entity.dart';
/**
 * **/

class ErpInfo extends ChangeNotifier {
  //出入库物资明细信息，用于记录提交
  ErpOddNumbersData mode;
  InvListDetailsDatas data;
  ReturnBookingEntity rbean;

  setRbean(ReturnBookingEntity rbean) {
    this.rbean = rbean;
  }

  setMode(ErpOddNumbersData mode) {
    this.mode = mode;
  }

  setData(InvListDetailsDatas data) {
    this.data = data;
  }

  setQty(int index, int number) {
    mode.details.elementAt(index).qty = number;
    //notifyListeners();
  }

  setRealquantity(int index, int number) {
    rbean.outOrderDetailList.elementAt(index).realquantity = number;
    //notifyListeners();
  }
}
